package net.qiujuer.lesson.sample.foo;

public enum CommandEnum {
    DOWN_CARD((byte) -1, "下载RFID卡数据", true),
    DOWN_PARAM((byte) -2, "下载参数", true),
    DOWN_FACE((byte) -3, "下载人脸权限", true),
    DOWN_ADVERTISING((byte) -4, "下载广告", true),
    OPEN_DOOR((byte) -5, "远程开门", true),
    UP_DATA((byte) -6, "上传门禁机开门记录", true),
    UP_CARD((byte) -7, "上传门禁机RFID卡数据", true),
    UP_PARAM((byte) -8, "上传门禁机参数记录", true),
    UP_FACE((byte) -9, "上传门禁机人脸权限", true),
    DOOR_STATUS((byte) -10, "上传门禁机工作状态", true),

    SEND_HEAD((byte) 0, "心跳连接", false),

    DOOR_IDENTITY((byte) 1, "门禁机注册身份", true),
    DOOR_CANCEL((byte) 2, "门禁机注销身份", true),
    DOOR_UPDATESITE((byte) 3, "更新门禁机位置信息", true),
    DOOR_BEGINDOWN((byte) 4, "开始下载", true),
    DOOR_DOWNING((byte) 5, "下载中", true),
    DOOR_ENDDOWN((byte) 6, "下载完成", true),
    DOOR_DOWNERROR((byte) 7, "下载错误", true),

    DOOR_BEGINOPEN((byte) 8, "开始开门", true),
    DOOR_OPENING((byte) 9, "开门中", true),
    DOOR_ENDOPEN((byte) 10, "开门成功", true),
    DOOR_OPENERROR((byte) 11, "开门失败", true),

    VIEW_DENTITY((byte) 12, "监控BS注册身份", true),
    VIEW_CANCEL((byte) 13, "监控BS机注销身份", true),
    ;

    /**
     * 命令标识
     */
    private byte command;
    /**
     * 备注
     */
    private String remark;
    /**
     * 是否校验
     */
    private boolean checkSite;

    CommandEnum(byte command, String remark, boolean checkSite) {
        this.command = command;
        this.remark = remark;
        this.checkSite = checkSite;
    }

    public byte getCommand() {
        return command;
    }

    public String getRemark() {
        return remark;
    }

    public boolean isCheckSite() {
        return checkSite;
    }
}
